<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
  @import "static/assets/common";
</style>
<script>
	
	export default {
		onLaunch: function() {
			// const that = this
			// console.log('App Launch')
			uni.hideTabBar({
				animation: false
			})
			// getHitokoto("k", "json", 20).then(res => {
			// 	res.forEach(function(res) {
			// 		if (res !== null) {
			// 			const data = res.data
			// 			if (data.from_who === null || data.from_who === "佚名") {
			// 				const oneToke = data.hitokoto + '—— ' + data.from
			// 				that.$store.commit('setOneToke', oneToke)
			// 			} else {
			// 				const oneToke = data.hitokoto + '—— ' + data.from_who
			// 				that.$store.commit('setOneToke', oneToke)
			// 			}

			// 		}
			// 	})
			// })
		},
		onShow: function() {
			console.log('App Show1')
		},
		onHide: function() {
			console.log('App Hide')
		}

	}
</script>

<style lang="less">
@import "static/icon/icon.css";
@import "static/assets/public";
</style>
